/**
 *
 */
package com.zhuoyue.elmt.service;

import java.util.List;

import com.zhuoyue.elmt.dao.FailureReportDao;
import com.zhuoyue.elmt.entity.WbMtGroupStaff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eit.eitsite.common.persistence.Page;
import com.eit.eitsite.common.service.CrudService;
import com.zhuoyue.elmt.entity.WbMtGroup;
import com.zhuoyue.elmt.dao.WbMtGroupDao;

/**
 * 维保小组Service
 * @author JiangYH
 * @version 2017-02-09
 */
@Service
@Transactional(readOnly = true)
public class WbMtGroupService extends CrudService<WbMtGroupDao, WbMtGroup> {

	public WbMtGroup get(String id) {
		return super.get(id);
	}
	
	public List<WbMtGroup> findList(WbMtGroup wbMtGroup) {
		return super.findList(wbMtGroup);
	}
	
	public Page<WbMtGroup> findPage(Page<WbMtGroup> page, WbMtGroup wbMtGroup) {
		return super.findPage(page, wbMtGroup);
	}
	
	@Transactional(readOnly = false)
	public void save(WbMtGroup wbMtGroup) {
		super.save(wbMtGroup);
	}
	
	@Transactional(readOnly = false)
	public void delete(WbMtGroup wbMtGroup) {
		super.delete(wbMtGroup);

		// 级联删除
		dao.deletegroupstaff(wbMtGroup);
	}

}